﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Commons.DomainBase.Models
{
    public interface ISoftDelete
    {
        int IsDeleted { get; set; }//不能写成get;protected set;否则在实现类中，这个属性不能是public http://www.itpow.com/c/2019/05/11443.asp
        DateTime? DeletionTime { get; set; }
        void SoftDelete() { 
        this.DeletionTime = DateTime.Now;
        this.IsDeleted = 1;
        }
    }
}
